package com.wushijia.dao;

import com.wushijia.model.Girl;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;

public class TestDao {

  @PersistenceContext(unitName = "customers")
  protected EntityManager entityManager;

  public void test() {
    Query query = entityManager.createQuery("select name from girl");
    List<Girl> userList = query.getResultList();

  }
}
